package org.company.management;

import org.company.management.controller.FileController;
import org.company.management.controller.UiController;
import org.company.management.ui.MainEditor;
import org.company.management.utilities.Strings;
import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
import org.eclipse.ui.application.WorkbenchAdvisor;
import org.eclipse.ui.application.WorkbenchWindowAdvisor;

/**
 * @author Paner
 *
 */
public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {

	private static final String PERSPECTIVE_ID = Strings.perspectiveId;

    public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
        return new ApplicationWorkbenchWindowAdvisor(configurer);
    }

	public String getInitialWindowPerspectiveId() {
		return PERSPECTIVE_ID;
	}
	
	@Override
	public void postStartup() {
		UiController.showEditor(Strings.home, MainEditor.ID);
		FileController.createImageFolder();
		
	}
	
}
